package cn.unuuc.cwl.sentinel.controller;

import cn.unuuc.cwl.sentinel.service.SentinelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("sentinel")
@RestController
public class SentinelController {

    @Resource
    SentinelService sentinelService;

    @GetMapping
    public String getSentinel(Long s) {
        return sentinelService.helloSentinel(s);
    }
}
